home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / include / linux / errqueue.h < prev    next >
C/C++ Source or Header  |  2008-10-24  |  381b  |  24 lines

  1. #ifndef _LINUX_ERRQUEUE_H
  2. #define _LINUX_ERRQUEUE_H 1
  3.  
  4. struct sock_extended_err
  5. {
  6.     __u32    ee_errno;    
  7.     __u8    ee_origin;
  8.     __u8    ee_type;
  9.     __u8    ee_code;
  10.     __u8    ee_pad;
  11.     __u32   ee_info;
  12.     __u32   ee_data;
  13. };
  14.  
  15. #define SO_EE_ORIGIN_NONE    0
  16. #define SO_EE_ORIGIN_LOCAL    1
  17. #define SO_EE_ORIGIN_ICMP    2
  18. #define SO_EE_ORIGIN_ICMP6    3
  19.  
  20. #define SO_EE_OFFENDER(ee)    ((struct sockaddr*)((ee)+1))
  21.  
  22.  
  23. #endif
  24.